using System;
using System.Collections.Generic;
using System.Text;
using Objects;
using DAL;

namespace BAL
{
    public class BALMenhGiaKhac
    {
        BALMenhGiaKhac _dal;
        public BALMenhGiaKhac()
        {
            _dal = new BALMenhGiaKhac();
        }

        public static int Insert_MenhGiaKhac(MenhGiaKhac Item)
        {
            DALMenhGiaKhac _dal = new DALMenhGiaKhac();
            return _dal.Insert_MenhGiaKhac(Item);
        }

        public static int Update_MenhGiaKhac(int id, string MenhGia, int SapXep)
        {
            DALMenhGiaKhac _dal = new DALMenhGiaKhac();
            return _dal.Update_MenhGiaKhac(id, MenhGia, SapXep);
        }

        public static int Delete_MenhGiaKhac(int id)
        {
            DALMenhGiaKhac _dal = new DALMenhGiaKhac();
            return _dal.Delete_MenhGiaKhac(id);
        }

        public static List<MenhGiaKhac> GetAllItem()
        {
            DALMenhGiaKhac _dal = new DALMenhGiaKhac();
            return _dal.GetAllItem();
        }

        public static MenhGiaKhac GetMaxId()
        {
            DALMenhGiaKhac _dal = new DALMenhGiaKhac();
            return _dal.GetMaxId();
        }

        public static MenhGiaKhac GetById(int Id)
        {
            DALMenhGiaKhac _dal = new DALMenhGiaKhac();
            return _dal.GetById(Id);
        }
    }
}
